import rsa

key = rsa.newkeys(3000)
privateKey = key[1]
publicKey = key[0]

text = "The shadow of a tree fell abruptly across the dew and ghostly birds began to sing among the blue leaves. There was a slow, pleasant movement in the air, scarcely a wind, promising a cool, lovely day"
new_text = text + "."

text = text.encode()
new_text = new_text.encode()

cryptedText = rsa.encrypt(text, publicKey)
decryptedText = rsa.decrypt(cryptedText, privateKey)
print(cryptedText)
print(decryptedText)

# cryptedText = rsa.encrypt(new_text, publicKey)
# print(cryptedText)